package edu.washington.cs.gitanaly;
import java.io.File;
import java.io.IOException;

import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;


public class Main {
	
//	public static String PATH = "freemind/freemind/modes/mindmapmode/MindMapMapModel.java";
//	public static String TYPE = "MindMapMapModel";
//	public static String METHOD = "setEdgeStyle";
//	public static String METHOD = " setEdgeStyle(";
	
//	public static String PATH = "freemind/freemind/modes/NodeAdapter.java";
//	public static String TYPE = "NodeAdapter";
//	public static String METHOD = "getEdge";
	
//	public static String PATH = "freemind/freemind/modes/LineAdapter.java";
//	public static String TYPE = "LineAdapter";
//	public static String METHOD = "setStyle";
	
	public static String PATH = "freemind/freemind/modes/mindmapmode/MindMapController.java";
	public static String TYPE = "EdgeStyleAction";
	public static String METHOD = "actionPerformed";
	
	public static void main(String[] args) {
		FileRepositoryBuilder builder = new FileRepositoryBuilder();
		builder.setGitDir(new File("/Users/hlv/repos/freemind/.git"));
		
		try {
			Repository repo = builder.readEnvironment().findGitDir().build();
			
			String tagFrom = "refs/tags/FM-0-7-1";
			String tagTo = "refs/tags/FM-0-8-0";
			
			Util.findMethods(repo, tagFrom, tagTo, PATH, TYPE, METHOD);
			
			repo.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
